﻿using System;

namespace Framework.Common.Attributes
{
    /// <summary>
    /// 描述枚举
    /// </summary>
    [AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field, AllowMultiple = false)]
    public sealed class EnumDescriptionAttribute : Attribute
    {
        public string Description { get; private set; }

        public EnumDescriptionAttribute(string description)
        {
            Description = description;
        }
    }
}
